package com.highcom.mapper;

import com.highcom.model.OrderSetting;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * @version 1.0
 * @Author YangJiaQuan_hrbnu
 * @Date 2024/8/2 14:16
 */
public interface OrderSettingDao {
    long findCountByOrderDate(Date orderDate);
    //更新可预约人数
    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);
    //根据日期范围查询预约设置信息
    List<OrderSetting> getOrderSettingByMonth(HashMap<String, String> map);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);

    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);
}
